package la.iok.hzsvn.lewin.movie.operation.model;

import java.util.Objects;

/**
 * 播放记录结束的参数
 */
public class EndParam {
    /**
     * 播放记录id
     */
    private Long id;
    /**
     * 操作的用户的id.如果是通过设备结束,需要有值,否则可以为空
     */
    private Long userId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        EndParam endParam = (EndParam) o;
        return Objects.equals(id, endParam.id) && Objects.equals(userId, endParam.userId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, userId);
    }
}
